package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcReviseItemMapper;
import com.csun.cmny.provider.dao.OmcReviseSetMealMapper;
import com.csun.cmny.provider.model.domain.OmcReviseSetMeal;
import com.csun.cmny.provider.model.vo.revise.ReviseSetMealVo;
import com.csun.cmny.provider.service.OmcReviseSetMealService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-09 16:48
 * @Description: the class omc revise set meal service impl
 */
@Service
@Transactional
public class OmcReviseSetMealServiceImpl extends BaseService<OmcReviseSetMeal>
        implements OmcReviseSetMealService {

    @Resource
    private OmcReviseSetMealMapper omcReviseSetMealMapper;

    /**
     * query revise set meal vo list by revise id
     *
     * @param reviseId the revise id
     *
     * @return the revise set meal vo list
     */
    @Override
    public List<ReviseSetMealVo> queryListByReviseId(Long reviseId) {

        return omcReviseSetMealMapper.queryListByReviseId(reviseId);
    }
}
